package com.jbit.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jbit.mapper.DepartmentMapper;
import com.jbit.pojo.Department;
import com.jbit.service.DepartmentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author LiRenZhi
 * @since 2021-08-25
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {

    /**
     * 获取所有部门及部门人数
     *
     * @return
     */
    @Override
    public List<Department> getAllDepartments() {
        return this.baseMapper.getAllDepartments();
    }
}
